package org.cangkuguanli.wangruiqi_bookstore.test;

import org.cangkuguanli.wangruiqi_bookstore.bean.Category;
import org.cangkuguanli.wangruiqi_bookstore.mapper.CategoryMapper;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest
public class CategoryText {
    @Resource
    private CategoryMapper categoryMapper;

    @Test
    public void a(){
        List<Category> list = categoryMapper.find();
        list.forEach(e->{
            System.out.println(e);
        });
    }
}
